public interface Animal{
    void bark();
}
public class Main {
    public static void main(String[] args) {
        Animal animal =new Animal(){
            @Override
            public void bark() {
                System.out.println("旺旺");
            }
        };
    }
}
